
import 'package:flutter_my_web/net/BaseResponse.dart';

class GetServerImageTitleTimeListResponse extends BaseResponse {
  String? info;
  GetServerImageTitleTimeListResponseData data =
      GetServerImageTitleTimeListResponseData();

  @override
  fromJson(Map<String, dynamic>? json) {
    this.status = json!['status'].toString();
    this.info = json['info'].toString();
    this.data.fromJson(json['data']);
  }
}

class GetServerImageTitleTimeListResponseData {
  List<String> titleTimes = [];

  @override
  fromJson(Map<String, dynamic> json) {
    String listStr = json['list'].toString();
    var _titleTimes = listStr.substring(1, listStr.length - 1).split(",");

    _titleTimes.forEach((element) {
      if (element.isNotEmpty) {
        titleTimes.add(element.trim());
      }
    });
  }
}
